Print a warning if GTK_DEBUG is set but gtk isn't built with G_ENABLE_DEBUG
authorChristoph Reiter <reiter.christoph@gmail.com>
Wed, 2 Oct 2019 19:35:20 +0000 (21:35 +0200)
committerChristoph Reiter <reiter.christoph@gmail.com>
Wed, 2 Oct 2019 19:35:20 +0000 (21:35 +0200)
commit94d9088034e0ad4af69d4baa2fa71127410be078
tree5e5e3e496087451c31173fb140b01bde879443ac
parentcbd9e560b00932874a42179f110dbe069b63047e
Print a warning if GTK_DEBUG is set but gtk isn't built with G_ENABLE_DEBUG

G_ENABLE_DEBUG is tied to the meson builttype property, so building with "plain"
results in G_ENABLE_DEBUG not being defined and the GTK_DEBUG env var just gets ignored
for that build.

Since it can be confusing that GTK_DEBUG has no effect print a warning message instead.

See #2020. This is a port of !1109 to master
gtk/gtkmain.c